package fun.xinnix.example;

import lombok.Data;

import java.io.Serializable;

@Data
public abstract class Response implements Serializable {
    private Integer code;

    private String message;

    public boolean isSuccess() {
        return 200 == code;
    }
}
